﻿using RG.Common.Configuration;
using Microsoft.Practices.Unity;
using RG.Common.Configuration;

namespace RG.Common
{
    public static class IUnityContainer_Common
    {
        public static IUnityContainer Common(this IUnityContainer cfg)
        {
            cfg
                .RegisterType<IApplicationSettings, ApplicationSettings>()
#if Release
                .RegisterInstance("StorageUrl", "http://storage.dom.maria.o/cgi-bin")
#else
                .RegisterInstance("StorageUrl", "http://storage-backup.dom.maria.o/cgi-bin")
#endif
                ;
            return cfg;
        }
    }
}
